.PHONY:all
all: thread t_stack mymutex cond
cond:cond.cc
	g++ -o $@ $^ -lpthread -std=c++11
mymutex:mymutex.cc
	g++ -o $@ $^ -lpthread -std=c++11
t_stack:thread_stack.cc
	g++ -o $@ $^ -lpthread -std=c++11
thread:thread.cc
	g++ -o $@ $^ -lpthread -std=c++11

.PHONY:clean
clean:
	rm -f thread t_stack mutex cond